package com.ycf.service.impl;

import com.ycf.dao.PersonDao;
import com.ycf.model.Person;
import com.ycf.service.Service;

public class ServiceImpl implements Service{
	
	private PersonDao personDao;

	@Override
	public boolean regist(Person person) {
		if(1==personDao.save(person)){
			return true;
		}
			return false;
	}

	public PersonDao getPersonDao() {
		return personDao;
	}

	public void setPersonDao(PersonDao personDao) {
		this.personDao = personDao;
	}
	
	

}
